Constraint Handling Rules with Multiset Comprehension Patterns

نویسندگان

  • Edmund Soon Lee Lam
  • Iliano Cervesato
چکیده

CHR is a declarative, concurrent and committed choice rulebased constraint programming language. We extend CHR with multiset comprehension patterns, providing the programmer with the ability to write multiset rewriting rules that can match a variable number of constraints in the store. This enables writing more readable, concise and declarative code for algorithms that coordinate large amounts of data or require aggregate operations. We call this extension CHR . We give a high-level abstract semantics of CHR , followed by a lower-level operational semantics. We then show the soundness of this operational semantics with respect to the abstract semantics.

منابع مشابه

Optimized Compilation of Multiset Rewriting with Comprehensions

We extend the rule-based, multiset rewriting language CHR with multiset comprehension patterns. Multiset compre-hension provides the programmer with the ability to write multiset rewriting rules that can match a variable number ofentities in the state. This enables implementing algorithms that coordinate large amounts of data or require aggregateoperations in a declarative way, and ...

متن کامل

As Time Goes By : Constraint Handling Rules A Survey of CHR Research from 1998 to 2007 JON

Constraint Handling Rules (CHR) is a high-level programming language based on multiheaded multiset rewrite rules. Originally designed for writing user-defined constraint solvers, it is now recognized as an elegant general purpose language. CHR-related research has surged during the decade following the previous survey by Frühwirth (1998). Covering more than 180 publications, this new survey pro...

متن کامل

As time goes by: Constraint Handling Rules

Constraint Handling Rules (CHR) is a high-level programming language based on multiheaded multiset rewrite rules. Originally designed for writing user-defined constraint solvers, it is now recognized as an elegant general purpose language. CHR-related research has surged during the decade following the previous survey by Frühwirth (1998). Covering more than 180 publications, this new survey pro...

متن کامل

As time goes by: Constraint Handling Rules - A survey of CHR research from 1998 to 2007

Constraint Handling Rules (CHR) is a high-level programming language based on multiheaded multiset rewrite rules. Originally designed for writing user-defined constraint solvers, it is now recognized as an elegant general purpose language. CHR-related research has surged during the decade following the previous survey by Frühwirth (1998). Covering more than 180 publications, this new survey pro...

متن کامل

Parallelism, Concurreny and Distribution in Constraint Handling Rules: A Survey (Draft)

Constraint Handling Rules (CHR) is both an effective concurrent declarative programming language and a versatile computational logic formalism. CHR has its roots in constraint logic programming and concurrent constraint programming, but also integrates ideas from multiset transformation and rewriting systems. CHR programs consist of guarded reactive rules that transform multisets of constraints...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

متن کامل
عنوان ژورنال:
  • CoRR

دوره abs/1406.2121  شماره 

صفحات  -

تاریخ انتشار 2014